home *** CD-ROM | disk | FTP | other *** search
- #include "includes.h"
- #include "defines.h"
- #include "funcs.h"
-
- char *findplayers()
- {
- char *tmpfnd;
- char *tmpdir;
- tmpfnd=calloc(1,256);
- tmpdir=calloc(1,256);
- playerdir=calloc(1,256);
-
- returnstring=NULL;
-
- player=mp3player[playertouse].player;
- for (x=0;strlen(mp3player[playertouse].playerflags[x])!=0;++x)
- playerflags[x]=mp3player[playertouse].playerflags[x];
- playeroutput=mp3player[playertouse].playeroutput;
-
- if ((tmpfnd=pathsrch(player))!=NULL)
- {
- strncat(playerdir,tmpfnd,\
- (int)((char *)rindex(tmpfnd,'/')-(char *)tmpfnd));
- returnstring=calloc(1,256);
- strcpy(returnstring,player);
- } else
- {
- printf ("Can't find %s in path!\n",player);
- returnstring=NULL;
- }
- return (returnstring);
- }
-